<div id="content">
    <fieldset>
        <legend>Change Password</legend><br/>
        <?php
        $attributes = array('id' => 'changePW_form');
        echo form_open('register/do_change_pw', $attributes);
        $old_password = array(
            'name' => 'old_password',
            'id' => 'old_password',
            'class' => 'required',
            'size' => '28',
            'value' => set_value('old_password')
        );
        $new_password = array(
            'name' => 'new_password',
            'id' => 'new_password',
            'class' => 'required',
            'size' => '28',
            'value' => set_value('new_password')
        );
        $cfm_old_password = array(
            'name' => 'cfm_old_password',
            'id' => 'cfm_old_password',
            'class' => 'required',
            'size' => '28',
            'value' => set_value('cfm_old_password')
        );
        $email = array(
            'name' => 'email',
            'id' => 'email',
            'class' => 'required email',
            'size' => '28',
            'value' => $this->session->userdata('email')
        );
        ?>
        <table>
            <tr>
                <td>Email</td>
                <td><?php echo form_input($email); ?></td>
            </tr>
            <tr>
                <td>New Password</td>
                <td><?php echo form_password($new_password); ?></td>
            </tr>
            <tr>
                <td>Old Password</td>
                <td><?php echo form_password($old_password); ?></td>
            </tr>
            <tr>
                <td>Confirm Old Password</td>
                <td><?php echo form_password($cfm_old_password); ?></td>
            </tr>
            <tr>
                <td colspan="2"><?php $att = array('class' => 'submit');
                echo form_submit('changePW_submit', 'Submit', $att); ?> </td>
            </tr>
        </table>
       <?php echo form_close(); ?>
    </fieldset>
</div>
